package main

import "caches/simple"

func main() {
	c := simple.NewCache[string, string]()
	c.Set("key1", "value1")
	c.Set("key2", "value2")
	c.Set("key3", "value3")

	for _, v := range c.Values() {
		println(v)
	}

	c.Delete("key2")
	if c.Exists("key2") {
		println("key2 exists")
	}

	for _, k := range c.Keys() {
		println(k)
	}

	c.Clear()

	println("Items count:", c.Count())
}
